/*
 *  This file is part of Signus: The Artefact Wars (http://signus.sf.net)
 *
 *  Copyright (C) 1997, 1998, 2002, 2003
 *  Vaclav Slavik, Richard Wunsch, Marek Wunsch
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as
 *  published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */


// Tabulky pro pohyb jednotek:


int TabTerrMoveGround[1024] = {
// Zakl. ter:
  0, 7, 7,7, 8,10,255,6,  
 7, 7, 7, 7,7,7, 8, 8,10,10,255,255,
// Prechody:
 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
9,9,9,9,9,9,9,9,9, 9,9,9,
 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
9,9,9,9,9,9,9,9,9,9,9,9,
// Velke sikme:
  0,9, 9,9,10,12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,9, 9,9,10,12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,9, 9,9,10,12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,9, 9,9,10,12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
// Male sikme:
  0,9, 9,9,10,12,255,255,  
  0,9, 9,9,10,12,255,255,  
  0,9, 9,9,10,12,255,255,  
  0,9, 9,9,10,12,255,255,  
  0,9, 9,9,10,12,255,255,  
  0,9, 9,9,10,12,255,255,255,255,255,255,255,255,255,255,  
  0,9, 9,9,10,12,255,255,  
 9, 7, 9,9,10,12,255,255,
// Zakl. ter:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,
// Prechody:
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255, 8, 8, 8, 8, 8, 8, 8, 8,
 8, 8, 8, 8,255,255,255,255,255,255,255,255,
255,255,255,255,7,7,7,7, 7, 7, 7, 7,
 7, 7, 7, 7, 7, 7, 8, 8, 8, 8,10,10,
10,10, 9, 9, 9, 9,10,10,10,10, 8, 8,
 8, 8,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,
// Velke sikme:
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
// Male sikme:
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,255,255,255,255,255,255,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,
// Zakl. ter:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,
// Prechody:
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,  7,  7,  7,  7,  7,  7,  7,  7,
  8,  8,  8,  8,255,255,255,255,255,255,255,255,
255,255,255,255,  8,  8,  8,  8,  8,  8,  8,  8,
  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,
// Velke sikme:
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
// Male sikme:
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,255,255,255,255,255,255,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,
// Zakl. ter:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,
// Prechody:
255,255,255,255, 255, 255, 255, 255, 255, 255, 255, 255,
 255, 255, 255, 255,  7,  7,  7,  7,  7,  7,  7,  7,
  8,  8,  8,  8, 255, 255, 255, 255, 255, 255, 255, 255,
 255, 255, 255, 255,  8,  8,  8,  8,  8,  8,  8,  8,
  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,  9,
// Velke sikme:
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
  0,  9,  9,  9, 10, 12,255, 10, 10,  9,  9, 10, 10, 10, 10, 11, 11,  9,  9,  0,
// Male sikme:
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,255,255,255,255,255,255,255,255,  
  0,  9,  9,  9, 10, 12,255,255,  
  0,  9,  9,  9, 10, 12,255,255,
};



int TabTerr2MoveGround[1024] = {
0, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  5,  5,  5,  5,  5,  5,  5,  5,  5,  
5,  5,  5,  5,  5,  5,  5,  0,  0,  5,  
0,  0,0,0,0,0,0,0,0,0, 
0,0,0,0,0,0,0,0,0,0,  
0,0,0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,5,5,5, 
5,5,5,5,5,5,5,5,5, 0,  
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  
0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
255,255,255,255,0,0,255,255,255,255,  
255,255, 255, 255, 255, 255, 9, 9, 9,0,  
0,255,255,255,255,255,255,14,14,  0,  
0,255,255,255,255,  0,  0,  0, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255,  0,  0,255,255,  0,  0, 
255,255,255,255,255,255,255,255,255,255, 
255,255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 9, 9, 9, 9, 9, 9,  
9, 9, 9, 9, 9,8,8,5,5,5,  
5,5,5,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,255,255,255,255,0,255,255,  
255,255,255,255,255,0, 255, 255, 255,255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 
255, 255, 255, 255, 255, 255,255,255, 255,255,  
255,255, 255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
};



int TabTerrMoveWater[1024] = {
// Zakl. ter:
  0,255,255,255,255,255,5,255,  
// Prechody:
255,255,255,255,255,255,255,255,255,255,5,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
// Velke sikme:
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
// Male sikme:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
// Zakl. ter:
255,255,255,255,255,255,255,255,  
// Prechody:
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
// Velke sikme:
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
// Male sikme:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
// Zakl. ter:
255,255,255,255,255,255,255,255,  
// Prechody:
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
// Velke sikme:
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
// Male sikme:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
// Zakl. ter:
255,255,255,255,255,255,255,255,  
// Prechody:
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
// Velke sikme:
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
// Male sikme:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
};



int TabTerr2MoveWater[1024] = {
0, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,255,255,255,255,255,255,255,255, 
255,255,255,255,255,255,255,255,255,255,  
255,255,255,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,255,255,255, 
255,255,255,255,255,255,255,255,255, 0,  
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  
0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
255,255,255,255,0,0,255,255,255,255,  
255,255, 255, 255, 255, 255, 255, 255, 255,0,  
0,255,255,255,255,255,255,255,255,  0,  
0,255,255,255,255,  0,  0,  0, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255,  0,  0,255,255,  0,  0,  
255,255,255,255,255,255,255,255,255,255,  
255,255, 255, 255, 255, 255, 255, 255, 255, 255, 
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255,255,255,255,255,255,  
255,255,255,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,255,255,255,255,0,255,255,  
255,255,255,255,255,0, 255, 255, 255,0,  
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 255,255,255, 255,255,  
255,255, 255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
};





int TabTerrMoveTrain[1024] = {
// Zakl. ter:
  0,255,255,255,255,255,255,255,  
// Prechody:
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
// Velke sikme:
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
// Male sikme:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
// Zakl. ter:
255,255,255,255,255,255,255,255,  
// Prechody:
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
// Velke sikme:
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
// Male sikme:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
// Zakl. ter:
255,255,255,255,255,255,255,255,  
// Prechody:
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
// Velke sikme:
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
// Male sikme:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
// Zakl. ter:
255,255,255,255,255,255,255,255,  
// Prechody:
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,
// Velke sikme:
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  0,
// Male sikme:
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,  
};



int TabTerr2MoveTrain[1024] = {
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0, 5, 5, 5, 5, 5, 5, 5, 5, 
5, 5, 5, 5, 5, 5, 5, 5,  0,  0,  
5,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  5,  5,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  5,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  5,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  5,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  5,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
};




int TabTerrMoveAmphi[1024] = {
// Zakl. ter:
  0, 5, 5,5, 5,5,5,5,  
// Prechody:
 5, 5, 5, 5,5,5, 5, 5,5,5,5,  5,
 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5,5,5,5,5,5,5,5,5, 5,5,5,
 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5,5,5,5,5,5,5,5,5,5,5,5,
// Velke sikme:
  7,7, 7,7, 7, 7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,7, 7,7, 7, 7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,7, 7,7, 7, 7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,7, 7,7, 7, 7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
// Male sikme:
  7,7, 7,7, 7, 7,  7,  7,
  7,7, 7,7, 7, 7,  7,  7,
  7,7, 7,7, 7, 7,  7,  7,
  7,7, 7,7, 7, 7,  7,  7,
  7,7, 7,7, 7, 7,  7,  7,
  7,7, 7,7, 7, 7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
  7,7, 7,7, 7, 7,  7,  7,
 7, 5, 7,7, 7, 7,  7,  7,
// Zakl. ter:
5,5,5,5,5,5,5,5,  
// Prechody:
5,5,5,5,5,5,5,5,5,5,5,5,
5,5,5,5,5,5,5,5,5,5,5,5,
5,5,5,5, 5, 5, 5, 5, 5, 5, 5, 5,
 5, 5, 5, 5,5,5,5,5,5,5,5,5,
5,5,5,5,5,5,5,5, 5, 5, 5, 5,
 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,5,5,
5,5, 5, 5, 5, 5,5,5,5,5, 5, 5,
 5, 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
// Velke sikme:
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
// Male sikme:
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
// Zakl. ter:
5,5,5,5,5,5,5,5,  
// Prechody:
5,5,5,5,5,5,5,5,5,5,5,5,
5,5,5,5,5,5,5,5,5,5,5,5,
5,5,5,5,  5,  5,  5,  5,  5,  5,  5,  5,
  5,  5,  5,  5,5,5,5,5,5,5,5,5,
5,5,5,5,  5,  5,  5,  5,  5,  5,  5,  5,
  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
// Velke sikme:
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
// Male sikme:
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
// Zakl. ter:
5,5,5,5,5,5,5,5,  
// Prechody:
5,5,5,5,5,5,5,5,5,5,5,5,
5,5,5,5, 5, 5, 5, 5, 5, 5, 5, 5,
 5, 5, 5, 5,  5,  5,  5,  5,  5,  5,  5,  5,
  5,  5,  5,  5, 5, 5, 5, 5, 5, 5, 5, 5,
 5, 5, 5, 5,  5,  5,  5,  5,  5,  5,  5,  5,
  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
// Velke sikme:
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  0,
// Male sikme:
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
  7,  7,  7,  7,  7,  7,  7,  7,
};



int TabTerr2MoveAmphi[1024] = {
0,5, 5, 5, 5, 5, 5, 5, 5, 5,  
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,  
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,  
5,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,0,0,0,0,0,0,0,0, 
0,0,0,0,0,0,0,0,0,0,  
0,0,0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,5,5,5, 
5,5,5,5,5,5,5,5,5, 0,  
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  
0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
255,255,255,255,0,0,255,255,255,255,  
255,255, 255, 255, 255, 255, 0, 0, 0,0,  
0,255,255,255,255,255,255,9,9,  0,  
0,255,255,255,255,  0,  0,  0, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255,  0,  0,255,255,  0,  0,  
255,255,255,255,255,255,255,255,255,255,  
255,255, 255, 255, 255, 255, 255, 255, 255, 255, 
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 0, 0, 0, 0, 0, 0,  
0, 0, 0, 0, 0,0,0,0,0,0,  
0,0,0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,255,255,255,255,0,255,255,  
255,255,255,255,255,0, 255, 255, 255,0,  
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 255,255,255, 255,255,  
255,255, 255,255,255,255,255,255,255,255,  
255,255,255,255,255,255,255,255,255,255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
0,255,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
0,255,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255, 255, 255, 255, 255,  
255, 255, 255, 255, 255, 255,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 
0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  
0,  0,  0,  0,  0,  0,
};



int TabTerrMoveAir[1024] = {
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
 5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
};



int TabTerr2MoveAir[1024] = {0
};




